<?php

$show["NoTop"] = true;
include_once('common.php');

define('FPDF_FONTPATH',$config["cesta"]["path"].'plugins/fpdf/font/');
require('plugins/fpdf/fpdf.php');

/*
$pdf=new FPDF();
  $pdf->AddFont('Arial','','arial.php');
  $pdf->AddPage();
  $pdf->SetFont('Arial','');
  
  //$vysledek=mysql_query("select * from psc where obec like '%Praha%'");
  //while ($zaznam=MySQL_Fetch_Array($vysledek)):
    $pdf->Cell(120,8, iconv("UTF-8", "ISO-8859-2", "šščřžýáíé"),1);
    $pdf->Cell(20,8, iconv("UTF-8", "ISO-8859-2", "74705"),1,1,'R');
  //endwhile;

  $pdf->Output();
  */

  
$pdf=new FPDF();
$pdf->Open();

$pdf->AddFont('arial','','arial.php');
$pdf->SetFont('arial');

$pdf->AddPage();

$pdf->Cell(40,10, iconv("UTF-8","WINDOWS-1250", 'šščřžýáíé!'),1);
$pdf->Output();

/*
$pdf=new FPDF("P","pt","A4");
$pdf->Open();
$pdf->AddFont('calibri','','calibri.php');
$pdf->AddPage();
$pdf->SetFont('calibri','',18);
$pdf->Cell(0,15,"TEST","0",1,"C");
$pdf->Cell(0,15,"ěščřžýáíé","0",1,"C");
$pdf->Output();
*/
?>
